/**
 * @name 前缀加载open
 */
export const iceLo = (title) => {
	var view = document.createElement('view')
	var imgBox = document.createElement('view')
	imgBox.style.width = '100%'
	imgBox.style.marginTop = '10px'
	view.id = 'iceLoading'
	view.className = 'iceFlexWrap'
	view.style.position = 'fixed'
	view.style.top = '50%'
	view.style.left = '50%'
	view.style.width = '130px'
	view.style.height = '100px'
	view.style.margin = '-50px 0 0 -65px'
	view.style.backgroundColor = 'rgba(0, 0, 0, .8)'
	view.style.textAlign = 'center'
	view.style.borderRadius = '6px'
	view.style.zIndex = '6'
	view.appendChild(imgBox)
	var image = document.createElement('img')
	image.src = "../static/logo.png"
	image.style.width = '40px'
	image.style.height = '40px'
	image.style.animation = 'rotate 2s ease-in-out infinite'
	imgBox.appendChild(image)
	var text = document.createElement('text')
	text.innerHTML = title
	view.style.color = '#ccc'
	view.appendChild(text)
	document.body.appendChild(view)
}
/**
 * @name 前缀加载close
 */
export const iceLc = () => {
	var elementById = document.getElementById('iceLoading')
	if (elementById) {
		var parent = elementById.parentNode
		parent.removeChild(elementById)
	}
}